<template>
    <div class="Helloworld">
        helloworld
        <input v-model="message">
    </div>
</template>

<script>
    export default {
        name: "Helloworld",
        props:{
            message:String
        },
        watch:{
            message:function(newValue){
                this.$emit("update",newValue)
            }
        }
    }
</script>

<style scoped>

</style>